import pandas as pd
import numpy as np
data = pd.read_json('../data_test/ratings.json')

print(data)
fracture = data.loc['Fracture']
print(np.mean(fracture))
# print(data.mean())
# print(data.mean(axis=1))
weights = [1,10,1,1,1,10,1]
# print(np.average(fracture,weights=weights))

print(np.argmax(fracture))
print(fracture.idxmax())
#中位数
print(np.median(fracture))
#标准差
print(data.std())
print(fracture.std())
print(np.std(fracture,ddof=1))
